package com.hy.service1;

import feign.Feign;
import org.springframework.context.annotation.Bean;

public interface UserServiceLoad {

    @Bean
    default UserService userService(){
        return Feign.builder().decoder(new MyDecode())
                .target(UserService.class, "http://localhost:8080");
    }

}
